package com.example.controller;

import com.example.entity.Classes;
import com.example.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@RestController
@RequestMapping("/classes")
public class ClassesController {

	@Autowired
	private ClassesService classesService;
	@GetMapping("/list")
	public List<Classes> findClasses(){
		return classesService.findClasses();
	}
}
